package com.auth.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色与权限关联表
 * </p>
 *
 * @author 坤哥
 * @since 2025-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user_permission")
public class UserPermission implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 按钮权限
     */
    @TableField("button")
    private String button;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
}
